package gazzera.gui.messages;

import gazzera.gui.*;
import gazzera.node.core.*;

import java.util.*;

public class PersonUpdate extends GuiMessage
{
	public String hash;
	public String nickname;
	public FriendStatus status;
	public int port;
	public String host;
	public OnlineStatus onlineStatus;
	public List<String> groups;
	
	public PersonUpdate(String hash, String nickname, FriendStatus status, int port, String host, OnlineStatus onlineStatus, List<String> groups)
	{
		super();
		this.hash = hash;
		this.nickname = nickname;
		this.status = status;
		this.port = port;
		this.host = host;
		this.onlineStatus = onlineStatus;
		this.groups = groups;
	}
	
	public String toString()
	{
		return status + " "+nickname+"@"+hash+"@"+host+":"+port+" "+onlineStatus+" "+groups;
	}
	
	
}
